<?php


namespace app\common\model;


use think\Model;

class Wallet extends Model
{
    protected $pk = "id";
    // 定义时间戳字段名
    protected $createTime = 'add_time';
    //修改format类型
    protected $dateFormat = "Y-m-d H:i:s";
    protected $type = [
        'g_min'     => 'float',
        'g_max'     => 'float',
        'g_xishu'     => 'float',
        'g_sxf'     => 'float',
        'jy_min'     => 'float',
        'jy_sxf'     => 'float',
        'jy_price'     => 'float',
    ];
    public function getPkAttr($value,$data) {
        return $this->pk;
    }
}
